package com.xianniu.ltc.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xianniu.ltc.model.entity.TMetaFieldDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @description 客户表
 * @author zhangyang@zencor.cn
 * @date 2021-05-19
 */
@Mapper
public interface TMetaFieldMapper extends BaseMapper<TMetaFieldDTO> {

    /**
     * 通过表名查询配置关联引用的实体名称及字段
     * @param refEntity
     * @return
     */
    @InterceptorIgnore(tenantLine = "on")
    List<TMetaFieldDTO> selectListByField(@Param("belongEntity") String belongEntity, @Param("refEntity") String refEntity, @Param("cascade") String cascade);
}

